.class Lcom/xingbook/park/view/h;
.super Landroid/os/Handler;


# instance fields
.field private a:Ljava/lang/ref/WeakReference;

.field private b:Z


# direct methods
.method constructor <init>(Lcom/xingbook/park/view/FrameView;)V
    .locals 1

    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/xingbook/park/view/h;->b:Z

    new-instance v0, Ljava/lang/ref/WeakReference;

    invoke-direct {v0, p1}, Ljava/lang/ref/WeakReference;-><init>(Ljava/lang/Object;)V

    iput-object v0, p0, Lcom/xingbook/park/view/h;->a:Ljava/lang/ref/WeakReference;

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 6

    const/4 v5, 0x1

    const/4 v2, 0x0

    const/4 v4, -0x1

    iget-object v0, p0, Lcom/xingbook/park/view/h;->a:Ljava/lang/ref/WeakReference;

    invoke-virtual {v0}, Ljava/lang/ref/WeakReference;->get()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/xingbook/park/view/FrameView;

    if-nez v0, :cond_1

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-static {v0}, Lcom/xingbook/park/view/FrameView;->a(Lcom/xingbook/park/view/FrameView;)Z

    move-result v1

    if-eqz v1, :cond_0

    invoke-static {v0}, Lcom/xingbook/park/view/FrameView;->b(Lcom/xingbook/park/view/FrameView;)I

    move-result v1

    if-eqz v1, :cond_2

    invoke-static {v0}, Lcom/xingbook/park/view/FrameView;->b(Lcom/xingbook/park/view/FrameView;)I

    move-result v1

    invoke-static {v0}, Lcom/xingbook/park/view/FrameView;->c(Lcom/xingbook/park/view/FrameView;)I

    move-result v3

    if-ne v1, v3, :cond_3

    :cond_2
    iput-boolean v2, p0, Lcom/xingbook/park/view/h;->b:Z

    :cond_3
    iget-boolean v1, p0, Lcom/xingbook/park/view/h;->b:Z

    if-eqz v1, :cond_6

    invoke-static {v0}, Lcom/xingbook/park/view/FrameView;->b(Lcom/xingbook/park/view/FrameView;)I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    invoke-static {v0, v1}, Lcom/xingbook/park/view/FrameView;->a(Lcom/xingbook/park/view/FrameView;I)V

    :goto_1
    invoke-static {v0}, Lcom/xingbook/park/view/FrameView;->b(Lcom/xingbook/park/view/FrameView;)I

    move-result v1

    invoke-static {v0}, Lcom/xingbook/park/view/FrameView;->d(Lcom/xingbook/park/view/FrameView;)I

    move-result v3

    if-ne v1, v3, :cond_4

    invoke-static {v0}, Lcom/xingbook/park/view/FrameView;->e(Lcom/xingbook/park/view/FrameView;)Lcom/xingbook/park/view/i;

    move-result-object v1

    if-eqz v1, :cond_4

    invoke-static {v0}, Lcom/xingbook/park/view/FrameView;->e(Lcom/xingbook/park/view/FrameView;)Lcom/xingbook/park/view/i;

    move-result-object v1

    invoke-interface {v1}, Lcom/xingbook/park/view/i;->a()V

    :cond_4
    invoke-static {v0}, Lcom/xingbook/park/view/FrameView;->b(Lcom/xingbook/park/view/FrameView;)I

    move-result v1

    invoke-static {v0}, Lcom/xingbook/park/view/FrameView;->f(Lcom/xingbook/park/view/FrameView;)I

    move-result v3

    if-ne v1, v3, :cond_5

    invoke-static {v0}, Lcom/xingbook/park/view/FrameView;->g(Lcom/xingbook/park/view/FrameView;)Z

    move-result v1

    if-eqz v1, :cond_c

    invoke-static {v0}, Lcom/xingbook/park/view/FrameView;->h(Lcom/xingbook/park/view/FrameView;)Z

    move-result v1

    if-eqz v1, :cond_9

    iput-boolean v5, p0, Lcom/xingbook/park/view/h;->b:Z

    invoke-static {v0}, Lcom/xingbook/park/view/FrameView;->i(Lcom/xingbook/park/view/FrameView;)I

    move-result v1

    if-ne v1, v4, :cond_7

    invoke-static {v0}, Lcom/xingbook/park/view/FrameView;->f(Lcom/xingbook/park/view/FrameView;)I

    move-result v1

    :goto_2
    invoke-static {v0, v1}, Lcom/xingbook/park/view/FrameView;->b(Lcom/xingbook/park/view/FrameView;I)V

    invoke-static {v0}, Lcom/xingbook/park/view/FrameView;->i(Lcom/xingbook/park/view/FrameView;)I

    move-result v1

    if-ne v1, v4, :cond_8

    invoke-static {v0}, Lcom/xingbook/park/view/FrameView;->f(Lcom/xingbook/park/view/FrameView;)I

    move-result v1

    add-int/lit8 v1, v1, -0x2

    :goto_3
    invoke-static {v0, v1}, Lcom/xingbook/park/view/FrameView;->a(Lcom/xingbook/park/view/FrameView;I)V

    :cond_5
    :goto_4
    :try_start_0
    invoke-static {v0}, Lcom/xingbook/park/view/FrameView;->j(Lcom/xingbook/park/view/FrameView;)[I

    move-result-object v1

    invoke-static {v0}, Lcom/xingbook/park/view/FrameView;->b(Lcom/xingbook/park/view/FrameView;)I

    move-result v2

    aget v1, v1, v2

    invoke-virtual {v0, v1}, Lcom/xingbook/park/view/FrameView;->setBackgroundResource(I)V
    :try_end_0
    .catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0

    :goto_5
    invoke-static {v0}, Lcom/xingbook/park/view/FrameView;->k(Lcom/xingbook/park/view/FrameView;)I

    move-result v1

    if-nez v1, :cond_d

    invoke-static {v0}, Lcom/xingbook/park/view/FrameView;->l(Lcom/xingbook/park/view/FrameView;)[I

    move-result-object v1

    if-eqz v1, :cond_d

    invoke-static {v0}, Lcom/xingbook/park/view/FrameView;->l(Lcom/xingbook/park/view/FrameView;)[I

    move-result-object v1

    invoke-static {v0}, Lcom/xingbook/park/view/FrameView;->b(Lcom/xingbook/park/view/FrameView;)I

    move-result v0

    aget v0, v1, v0

    :goto_6
    int-to-long v0, v0

    invoke-virtual {p0, v5, v0, v1}, Lcom/xingbook/park/view/h;->sendEmptyMessageDelayed(IJ)Z

    goto/16 :goto_0

    :cond_6
    invoke-static {v0}, Lcom/xingbook/park/view/FrameView;->b(Lcom/xingbook/park/view/FrameView;)I

    move-result v1

    add-int/lit8 v1, v1, 0x1

    invoke-static {v0, v1}, Lcom/xingbook/park/view/FrameView;->a(Lcom/xingbook/park/view/FrameView;I)V

    goto :goto_1

    :cond_7
    invoke-static {v0}, Lcom/xingbook/park/view/FrameView;->i(Lcom/xingbook/park/view/FrameView;)I

    move-result v1

    add-int/lit8 v1, v1, 0x1

    goto :goto_2

    :cond_8
    invoke-static {v0}, Lcom/xingbook/park/view/FrameView;->i(Lcom/xingbook/park/view/FrameView;)I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    goto :goto_3

    :cond_9
    invoke-static {v0}, Lcom/xingbook/park/view/FrameView;->i(Lcom/xingbook/park/view/FrameView;)I

    move-result v1

    if-ne v1, v4, :cond_a

    invoke-static {v0}, Lcom/xingbook/park/view/FrameView;->f(Lcom/xingbook/park/view/FrameView;)I

    move-result v1

    :goto_7
    invoke-static {v0, v1}, Lcom/xingbook/park/view/FrameView;->b(Lcom/xingbook/park/view/FrameView;I)V

    invoke-static {v0}, Lcom/xingbook/park/view/FrameView;->c(Lcom/xingbook/park/view/FrameView;)I

    move-result v1

    if-ne v1, v4, :cond_b

    move v1, v2

    :goto_8
    invoke-static {v0, v1}, Lcom/xingbook/park/view/FrameView;->a(Lcom/xingbook/park/view/FrameView;I)V

    goto :goto_4

    :cond_a
    invoke-static {v0}, Lcom/xingbook/park/view/FrameView;->i(Lcom/xingbook/park/view/FrameView;)I

    move-result v1

    add-int/lit8 v1, v1, 0x1

    goto :goto_7

    :cond_b
    invoke-static {v0}, Lcom/xingbook/park/view/FrameView;->c(Lcom/xingbook/park/view/FrameView;)I

    move-result v1

    goto :goto_8

    :cond_c
    invoke-virtual {v0}, Lcom/xingbook/park/view/FrameView;->a()V

    goto/16 :goto_0

    :cond_d
    invoke-static {v0}, Lcom/xingbook/park/view/FrameView;->k(Lcom/xingbook/park/view/FrameView;)I

    move-result v0

    goto :goto_6

    :catch_0
    move-exception v1

    goto :goto_5
.end method
